package com.example.generator.mapper;

import com.example.generator.model.User;
import com.example.modules.user.UserDetailsVO;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {
    UserDetailsVO selectByUsernameFetchResource(String username);

    UserDetailsVO selectByIdFetchResource(Integer id);

    void initUserRole(Integer userId);
}